home *** CD-ROM | disk | FTP | other *** search
/ Business Shareware / Business Shareware.iso / start / edu / papam10 / install.bat < prev    next >
DOS Batch File  |  1993-02-09  |  3KB  |  84 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  16. echo *                                                                       *
  17. echo *   Pencil and Paper Activity Maker Hard Disk Installation and Update.  *
  18. echo *                                                                       *
  19. echo *   This will create a directory called %1\PAPAMAKE on your hard disk,  *
  20. echo *   and will install the PAPAM (Pencil and Paper Activity Maker) files  *
  21. echo *   in that directory.                                                  *
  22. echo *                                                                       *
  23. echo *   If PAPAM is already installed on your hard disk, this will update   *
  24. echo *   the files in the %1\PAPAMAKE directory.                             *
  25. echo *                                                                       *
  26. echo *   If you don't want PAPAM installed/updated at this time, press       *
  27. echo *   CTRL + BREAK.                                                       *
  28. echo *                                                                       *
  29. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  30. echo 
  31. pause
  32. cls
  33. if exist %1\PAPAMAKE\*.* goto EXISTS
  34. echo Making directory %1\PAPAMAKE . . .
  35. md %1\PAPAMAKE
  36. :CHECK
  37. if exist PAPAM.EXE goto CONTINUE
  38. echo 
  39. echo Place the disk containing Pencil and Paper Activity Maker files in the
  40. echo active drive.
  41. echo 
  42. pause
  43. goto CHECK
  44. :CONTINUE
  45. echo 
  46. echo Copying Pencil and Paper Activity Maker files . . .
  47. copy *.* %1\PAPAMAKE
  48. if not exist %1\PAPAMAKE\PAPAM.EXE goto INSTALLERROR
  49. if not exist %1\PAPAMAKE\BRUN45.EXE goto INSTALLERROR
  50. cd %1\PAPAMAKE
  51. echo 
  52. echo Pencil and Paper Activity Maker is installed/updated on your hard disk.  
  53. echo To run it, type PAPAM.
  54. %1
  55. echo 
  56. goto DONE
  57. :WHATDRIVE
  58. cls
  59. echo Installation Error:  To install Pencil and Paper Activity Maker on your
  60. echo hard disk, you must include the drive as part of the install command.
  61. echo for example, to install Pencil and Paper Activity Maker on drive C, type 
  62. echo INSTALL C: and press ENTER.
  63. goto ERRORQUIT
  64. :NOTDRIVE
  65. cls
  66. echo Installation Error: The hard drive letter can be a letter from C to F,
  67. echo For example, INSTALL C: will install Pencil and Paper Activity Maker
  68. echo on drive C.  You must include a colon after the drive letter.
  69. goto ERRORQUIT
  70. :INSTALLERROR
  71. cls
  72. echo Installation Error: Do you have enough space on your hard disk?
  73. echo Did you give the proper hard drive letter?
  74. goto ERRORQUIT
  75. :EXISTS
  76. cls
  77. echo Updating directory %1\PAPAMAKE . . .
  78. goto CHECK
  79. :ERRORQUIT
  80. echo 
  81. echo Pencil and Paper Activity Maker was as not installed correctly.
  82. echo 
  83. :DONE
  84.